package com.example.design.ddd.practice.application.orgmng;
// imports ...

import com.example.design.ddd.practice.domain.empmng.entity.Emp;
import com.example.design.ddd.practice.domain.empmng.repository.EmpRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class EmpService {
//    private final EmpRepository empRepository;
//    private final EmpAssembler assembler;
//
//    @Autowired
//    public EmpService(EmpRepository empRepository
//            , EmpAssembler assembler) {
//        this.empRepository = empRepository;
//        this.assembler = assembler;
//    }
//
//    @Transactional
//    public EmpResponse addEmp(CreateEmpRequest request, User user) {
//        Emp emp = assembler.fromCreateRequest(request, user);
//
//        empRepository.save(emp);
//        return assembler.toResponse(emp);
//    }

}